package com.chat.controller;

import com.chat.service.PythonScriptExecutorService;
import com.chat.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/pythonScriptExecutor")
@RestController
public class PythonScriptExecutorController {

    @Autowired
    private PythonScriptExecutorService pythonScriptExecutor;

    @Autowired
    private UserService userService;

    @RequestMapping("/getAns.do")
    public String getRes(@RequestParam(defaultValue = "") String disease) {
        return pythonScriptExecutor.getRes(disease);
    }
}
